package dbutils01;

import org.apache.commons.dbutils.QueryRunner;
import org.junit.Before;
import org.junit.Test;

import java.sql.Connection;

public class JDBCUtilsDemo {
    private QueryRunner qr;
    @Before
    public void  initQueryRunnner(){
        qr = new QueryRunner(dbutils02.JDBCUtils.getDataSource());
    }

    @Test
    public void  test(){
        Connection connection =JDBCUtils.getConnection();
        System.out.println(connection);
    }
}
